<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>搜索商品</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/css/see/reset.min.css">
    <link rel="stylesheet" href="/css/happyi/commoditySearch.min.css?v=<%=$version%>">
</head>
<body>
<div id="commoditySearch" v-cloak>
    <header class="recruitScreen-header">
        <span class="header-left" @click="getBack()"></span>
        <div class="header-cent">
            <span class="header-leftLeft"></span>
            <input type="text" v-if="type==1||type==3" name="name" v-model="name" placeholder="请输入商品名称">
            <input type="text" v-if="type==2" name="name" v-model="name" placeholder="请输入商品、订单号、手机号、姓名">
            <strong class="recruitScreen-reset"></strong>
        </div>
        <span class="header-right" @click="getBack()">取消</span>
    </header>
    <div class="searchResult">
        <template v-if="type==1">
            <div class="mySell-list" v-for="item in noticeList2" :key="item.productId">
                <div class="mySell-listTop clearfix">
                    <strong class="mySell-listHead" :style="bgimg(item.imgSrc)"></strong>
                    <h6>{{item.title}}</h6>
                    <p>&yen;{{item.price}}</p>
                    <div class="listTop-txt"><span>销量：{{item.orderNum}}</span><span>成交额：{{item.money}}</span></div>
                    <div class="listTop-txt"><span>库存：{{item.num}}</span><span>添加：{{item.createDate}}</span></div>
                </div>
                <div class="myCommodity-listButt clearfix">
                    <a><span class="myCommodity-icon1" @click="getNext1(2,item.productId)">编辑</span><strong></strong></a>
                    <a class="myCommodity-lower">
                        <span class="myCommodity-icon" v-if="item.isupper==0" @click="upperLowerProduct(item)">上架</span>
                        <span class="jobAdmin-icon3" v-if="item.isupper==1" @click="upperLowerProduct(item)">下架</span>
                        <strong></strong>
                    </a>
                    <a><span class="jobAdmin-icon1">分享</span></a>
                </div>
            </div>
        </template>
        <template v-if="type==2">
            <div class="order-list clearfix" v-for="item in noticeList2" :key="item.productId">
                <strong class="order-listHead" :style="bgimg(item.imgSrc)"></strong>
                <div class="order-listRight">
                    <p>订单号:<span>{{item.orderNumber}}</span></p>
                    <p>收货人:<span>{{item.consignee}}</span></p>
                    <div>{{item.createDate}}
                        <span>{{{"1":"等待付款","2":"确定订单","3":"已支付","4":"已发货","5":"已收货","6":"暂存储","7":"已完成","8":"已取消","9":"已转售","10":"已关闭"}[""+item.state]}}</span>
                    </div>
                    <!--1 等待付款 2 确定订单 3 已支付 4 已发货 5 已收货 6 暂存储 7 已完成  8 已取消 9 已转售 10 已关闭 afterState 售后状态 10申请退款  20 取消退款 30 同意退款 40拒绝退款 45退款完成50买家投诉 60申请退货退款70同意退货退款 80拒绝退货退款  90退货退款完成100买家举证110卖家举证-->
                </div>
            </div>
        </template>
        <template v-if="type==3">
            <div class="confirmOrder-cent">
                <div class="confirmOrder-centList" v-for="(item,index) in noticeList2">
                    <div class="centList-title">
                        <template v-if="item.mediaUserId==0">
                            <span class="headName">{{item.name}}</span>
                        </template>
                        <template v-else>
                            <strong class="headImg" :style="bgimg(item.headImg)"></strong>{{item.name}}
                        </template>
                        <span class="titleState" :class="{'state':item.state==1}">{{{"1":"等待付款","2":"确定订单","3":"待收货","4":"已发货","5":"已收货","6":"暂存储","7":"已完成","8":"已取消","9":"已转售","10":"已关闭"}[''+item.state]}}</span>
                    </div>
                    <div class="confirmOrder-listCent">
                        <div class="centList-cent clearfix" v-for="(list,ins) in item.subList" @click="getNext1(3,list.orderNumber)">
                            <div class="centList-centImg" :style="bgimg(list.imgSrc)">
                                <span class="shoppingCart-icon1" v-if="list.activityType==3"></span>
                                <span class="shoppingCart-icon2" v-if="list.activityType==2"></span>
                                <span class="shoppingCart-icon3" v-if="list.activityType==1"></span>
                            </div>
                            <div class="centList-centRight">
                                <h6 class="clearfix">{{list.title}}<span class="centRight-h6"><span>×</span>{{list.number}}</span></h6>
                                <p v-if="list.activityType==3">{{list.colorName}}<span></span>当前<strong>9.0</strong>折</p>
                                <p v-else>{{list.colorName}}<i v-if="list.colorName">&nbsp;</i>{{list.specName}}</p>
                                <div class="happyi-mon">&yen;{{list.integral}}</div>
                            </div>
                        </div>
                    </div>
                    <div class="centList-butt">
                        <template v-if="item.state==1">
                            <div class="buttState1">
                                合计：<span class="integral happyi-mon">&yen;{{item.integral}}&nbsp;&nbsp;(含运费:<span class="happyi-mon">&yen;{{item.freightIntegral}}</span>)</span><span class="btn" :class="{'btn1':compareDate(item)<0}" v-if="">支付<strong :id="'stateData'+index">{{leftTimer(item,index)}}</strong></span>
                            </div>
                        </template>
                        <template v-else>
                            <div class="buttState6 clearfix">
                                <span class="buttState-btn" v-if="item.state==6">去转售</span>
                                <span class="buttState-btn" v-if="item.state==6">收货</span>
                                <span class="buttState-btn" v-if="item.state==3">查看物流</span>
                                <span class="buttState-btn" v-if="item.state==7||item.state==8||item.state==9||item.state==10">删除订单</span>
                            </div>
                        </template>
                    </div>
                </div>
                <div class="loadtip" v-if="loadFlag"></div>
            </div>
        </template>
    </div>
    <prompt-view ref="prompt"></prompt-view>
</div>
<script src='/plugins/js/jquery-1.11.3.min.js'></script>
<script type="text/javascript" src="/plugins/js/vue.min.js"></script>
<script type="text/javascript" src="/js/happyi/commoditySearch.js?v=<%=$version%>"></script>
</body>
</html>